from fastapi import FastAPI
from tortoise.contrib.fastapi import register_tortoise
from app.settings import TORTOISE_ORM
from app.api.user import user_api


app = FastAPI(title="学生管理系统",version="v1.0.0")

app.include_router(user_api,tags=["中国云咖用户接口"])

register_tortoise(app=app,config=TORTOISE_ORM)


if __name__ == '__main__':
    import uvicorn
    uvicorn.run("main:app",host="127.0.0.1",port=8000,reload=True)

